<template>
	<el-drawer title="职称评定详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="排序号" prop="sortNo">{{form.sortNo}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="申请人员" prop="userId">{{form.userName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="职称获取类型" prop="getType">{{form.getTypeName}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="申报称职名称" prop="postName">{{form.postName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="职称申请日期" prop="applyTime">{{form.applyTime}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="职称获取日期" prop="receiveTime">{{form.receiveTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="下次申报日期" prop="nextApplyTime">{{form.nextApplyTime}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="下次申报资称" prop="nextPostName">{{form.nextPostName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="聘用公司" prop="employComp">{{form.employComp}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="聘用职务" prop="employPost">{{form.employPost}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="聘用开始日期" prop="employBeginTime">{{form.employBeginTime}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="聘用结束日期" prop="employEndTime">{{form.employEndTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明">{{form.remark}}
					</el-form-item>
					<el-form-item label="相关附件" v-if="form.attachId!=''">
						<attach-menu :attachIds="form.attachId" :roleFlag="3" :preview="true" ></attach-menu>
					</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
import AttachMenu from '@/views/module/attachMenu'
export default {
	emits: ['success', 'closed'],
	components: {
		AttachMenu,
	},
	data() {
		return {
			loading: false,
			form: {
				recordId: '',
				sortNo: '',
				getTypeName: '',
				userName: '',
				postName:'',
				applyTime: '',
				receiveTime: '',
				nextApplyTime: "",
				nextPostName:'',
				employComp:'',
				employPost:'',
				employBeginTime:'',
				employEndTime:'',
				attachId: '',
				remark: ''
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.recordId = data.recordId
			this.form.sortNo = data.sortNo
			this.form.userName = data.userName
			this.form.getTypeName = data.getTypeName
			this.form.postName = data.postName
			this.form.applyTime = data.applyTime
			this.form.receiveTime = data.receiveTime
			this.form.nextApplyTime = data.nextApplyTime
			this.form.nextPostName = data.nextPostName
			this.form.employComp = data.employComp
			this.form.employPost = data.employPost
			this.form.employBeginTime = data.employBeginTime
			this.form.employEndTime = data.employEndTime
			this.form.attachId = data.attachId
			this.form.remark = data.remark
		},
	}
}
</script>

<style>
</style>
